
import 'dart:io';

main(){
  var streamStudyTest = StreamStudyTest();
  streamStudyTest.simple1();
}
class StreamStudyTest{
  void simple1(){
    var list = [1,2,3,4,5];
    var stream = Stream.fromIterable(list.reversed);
    stream.listen((event) {
      print(event);
    });
  }
}
